package itdfq.dfq.Structural_Patterns.xiangyuan;
/**
 * @Author GocChin
 * @Date 2021/4/20 10:56
 * @Blog: itdfq.com
 * @QQ: 909256107
 */
public class Client {
    public static void main(String[] args) {
        System.out.println("18031210111  段方钦");
        Puke p1,p2,p3,p4,p5;
        Factory factory = new Factory();
        p1=factory.getPuke("one");
        p1.use(1);
        p2=factory.getPuke("one");
        p2.use(2);
        p3=factory.getPuke("one");
        p3.use(3);
        p4=factory.getPuke("two");
        p4.use(4);
        p5=factory.getPuke("two");
        p5.use(5);
        System.out.println("一共有"+factory.getTptalCards()+"桌");
        System.out.println("一共使用了"+factory.getTotalTerminal()+"个牌局");
    }
}
